Skip to content

issues Search Results · repo:amatsuda/active_decorator language:Ruby

Filter by

29 results
 (102 ms)

29 results

inamatsuda/active_decorator (press backspace or delete to remove)

Model: class Promoter class Role ApplicationRecord end end Decorator: class Promoter class RoleDecorator def _permissions; end end end Error: NoMethodError: undefined method `_permissions ...
  • wbotelhos
  • 1
  • Opened 
    on Dec 20, 2023
  • #121

I attempted to update my Ruby version from 2.7.7 to 3.0.5, and now I am encountering the following error when running RSpec: Error Details The error stack trace is as follows: /home/circleci/repo/vendor/bundle/ruby/3.0.0/gems/active_decorator-1.4.0/lib/active_decorator/view_context.rb:20:in ...
  • nyshk97
  • Opened 
    on Apr 5, 2023
  • #118

Hi there, thanks for creating such a great project! We noticed that a particular request in our Rails app was slow. Eventually we traced the problem to a decorator that was calling image_tag. Each call ...
  • gurgeous
  • 2
  • Opened 
    on Mar 11, 2021
  • #114

With the recent update to Rails 6.1 using ApplicationController.renderer.render causes automatic locals variable decoration to fail
  • jamesbrooks
  • Opened 
    on Dec 21, 2020
  • #112

It s okay to use decorator methods in actionview, but just like the following case, if I use decorator method in other decorator, it will be confronted with error. it will be wonderful if it s possible ...
  • wenbo
  • 2
  • Opened 
    on May 18, 2020
  • #107

On writing my UserDecorator, I find it overlap a lot. Just decorate the datetime but I have to repeat writing decorator a lot. # frozen_string_literal: true module UserDecorator def created_at_datetime ...
  • truongnmt
  • 5
  • Opened 
    on Jul 2, 2019
  • #104

Here s the backtrace. https://gist.github.com/rainerborene/b0906fbfd75ef6f028935ce73d576fa7 And here s the solution: # frozen_string_literal: true # A monkey-patch for Action Controller to pass the ...
  • rainerborene
  • 2
  • Opened 
    on Apr 30, 2019
  • #102

ActiveDecorator generally does a nice job decorating active record associations, but there are gaps. For example: author = ActiveDecorator::Decorator.instance.decorate(Author.first) puts author.books.first.is_a?(ActiveDecorator::Decorated) ...
  • gurgeous
  • 3
  • Opened 
    on Jan 28, 2019
  • #99

First of all, thank you very much for this nice gem ! 👍 Like 99% Rails projets I m using devise in order to manage users and I d like to decorate the current_user object from Devise and I m wondering ...
  • zedtux
  • 2
  • Opened 
    on Jan 25, 2019
  • #98

From the readme, it says: ActiveDecorator::ViewContext.run_with ApplicationController.new.view_context do ## perform some heavy jobs here end However, what I did is the following ↪ rails runner ActiveDecorator::ViewContext.run_with(ApplicationController.new.view_context) ...
  • Aaron2Ti
  • 2
  • Opened 
    on Nov 24, 2018
  • #97
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub