Module: ValidatesTimeliness
- Defined in:
- lib/validates_timeliness.rb,
lib/validates_timeliness/railtie.rb,
lib/validates_timeliness/version.rb,
lib/validates_timeliness/converter.rb,
lib/validates_timeliness/validator.rb,
lib/validates_timeliness/extensions.rb,
lib/validates_timeliness/orm/active_model.rb,
lib/validates_timeliness/attribute_methods.rb,
lib/validates_timeliness/orm/active_record.rb,
lib/validates_timeliness/extensions/date_time_select.rb,
lib/generators/validates_timeliness/install_generator.rb,
lib/validates_timeliness/extensions/multiparameter_handler.rb
Defined Under Namespace
Modules: AttributeMethods, Extensions, Generators, ORM Classes: Converter, Railtie, Validator
Constant Summary collapse
- VERSION =
'6.0.1'
Class Attribute Summary collapse
-
.extend_orms ⇒ Object
Returns the value of attribute extend_orms.
-
.ignore_restriction_errors ⇒ Object
Returns the value of attribute ignore_restriction_errors.
-
.restriction_shorthand_symbols ⇒ Object
Returns the value of attribute restriction_shorthand_symbols.
-
.use_plugin_parser ⇒ Object
Returns the value of attribute use_plugin_parser.
Class Method Summary collapse
- .enable_date_time_select_extension! ⇒ Object
- .enable_multiparameter_extension! ⇒ Object
- .load_orms ⇒ Object
- .parser ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Setup method for plugin configuration.
Class Attribute Details
.extend_orms ⇒ Object
Returns the value of attribute extend_orms.
28 29 30 |
# File 'lib/validates_timeliness.rb', line 28 def extend_orms @extend_orms end |
.ignore_restriction_errors ⇒ Object
Returns the value of attribute ignore_restriction_errors.
28 29 30 |
# File 'lib/validates_timeliness.rb', line 28 def ignore_restriction_errors @ignore_restriction_errors end |
.restriction_shorthand_symbols ⇒ Object
Returns the value of attribute restriction_shorthand_symbols.
28 29 30 |
# File 'lib/validates_timeliness.rb', line 28 def restriction_shorthand_symbols @restriction_shorthand_symbols end |
.use_plugin_parser ⇒ Object
Returns the value of attribute use_plugin_parser.
28 29 30 |
# File 'lib/validates_timeliness.rb', line 28 def use_plugin_parser @use_plugin_parser end |
Class Method Details
.enable_date_time_select_extension! ⇒ Object
6 7 8 |
# File 'lib/validates_timeliness/extensions.rb', line 6 def self.enable_date_time_select_extension! ::ActionView::Helpers::Tags::DateSelect.send(:prepend, ValidatesTimeliness::Extensions::TimelinessDateTimeSelect) end |
.enable_multiparameter_extension! ⇒ Object
10 11 12 |
# File 'lib/validates_timeliness/extensions.rb', line 10 def self.enable_multiparameter_extension! require 'validates_timeliness/extensions/multiparameter_handler' end |
.load_orms ⇒ Object
58 59 60 |
# File 'lib/validates_timeliness.rb', line 58 def self.load_orms extend_orms.each {|orm| require "validates_timeliness/orm/#{orm}" } end |
.parser ⇒ Object
62 |
# File 'lib/validates_timeliness.rb', line 62 def self.parser; Timeliness end |
.setup {|_self| ... } ⇒ Object
Setup method for plugin configuration
53 54 55 56 |
# File 'lib/validates_timeliness.rb', line 53 def self.setup yield self load_orms end |