Module: SupportsPointer
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/supports_pointer.rb,
lib/supports_pointer/railtie.rb,
lib/supports_pointer/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- MODEL_PARSER_ATOMS =
[:"(?<model_name>\\w*)"]
- MODEL_RESOLVER =
Proc.new{ |data| data[:model_name].classify.constantize }
- MODEL_GENERATOR =
Proc.new{ |data| data.name }
- MODEL_INSTANCE_PARSER_ATOMS =
[:"(?<model_name>\\w*):(?<param>\\w*)"]
- MODEL_INSTANCE_RESOLVER =
Proc.new{ |data| data[:model_name].classify.constantize.find(data[:param]) }
- MODEL_INSTANCE_GENERATOR =
Proc.new{ |data| "#{data.class.name}:#{data.to_param}" }
- HANDLE_PARSER_ATOMS =
[:"@",:"(?<handle>\\w*)"]
- VERSION =
"0.5.2"