Class: MuchRails::Action::BaseRouter::RequestTypeAction

Inherits:
Struct
  • Object
show all
Defined in:
lib/much-rails/action/base_router.rb

Instance Method Summary collapse

Instance Method Details

#class_constantObject



305
306
307
# File 'lib/much-rails/action/base_router.rb', line 305

def class_constant
  @class_constant ||= class_name.constantize
end

#constraints_lambdaObject



301
302
303
# File 'lib/much-rails/action/base_router.rb', line 301

def constraints_lambda
  request_type.constraints_lambda
end

#formatObject



309
310
311
# File 'lib/much-rails/action/base_router.rb', line 309

def format
  class_constant.format
end