Module: HasStar::ActionController

Defined in:
lib/has_star.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#has_star_resource_methodObject

Returns the value of attribute has_star_resource_method.



20
21
22
# File 'lib/has_star.rb', line 20

def has_star_resource_method
  @has_star_resource_method
end

Instance Method Details

#has_star(resource_method = :resource) ⇒ Object



22
23
24
25
# File 'lib/has_star.rb', line 22

def has_star(resource_method = :resource)
  self.has_star_resource_method = resource_method
  include Controller
end