Module: Nested::Angular::Sinatra
- Defined in:
- lib/nested.rb
Instance Method Summary collapse
-
#create_resource(*args, &block) ⇒ Object
def create_resource(name, singleton, collection, &block).
- #nested_angular_config(config = nil) ⇒ Object
Instance Method Details
#create_resource(*args, &block) ⇒ Object
def create_resource(name, singleton, collection, &block)
303 304 305 |
# File 'lib/nested.rb', line 303 def create_resource(*args, &block) angularize(super) end |
#nested_angular_config(config = nil) ⇒ Object
307 308 309 310 311 312 313 |
# File 'lib/nested.rb', line 307 def nested_angular_config(config=nil) if config @nested_angular_config = config else @nested_angular_config ||= {} end end |