class AuthorizedRailsScaffolds::RSpecScaffoldViewHelper
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
AuthorizedRailsScaffolds::RSpecScaffoldHelper::new
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 5 def initialize(options = {}) super options end
Public Instance Methods
attributes()
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 9 def attributes @attributes end
date_select_day_value(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 25 def date_select_day_value(date_string) DateTime.parse(date_string).strftime('%-d') end
date_select_hour_value(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 29 def date_select_hour_value(date_string) DateTime.parse(date_string).strftime('%H') end
date_select_minute_value(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 33 def date_select_minute_value(date_string) DateTime.parse(date_string).strftime('%M') end
date_select_month_text(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 21 def date_select_month_text(date_string) DateTime.parse(date_string).strftime('%B') end
date_select_month_value(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 17 def date_select_month_value(date_string) DateTime.parse(date_string).strftime('%-m') end
date_select_year_value(date_string)
click to toggle source
# File lib/authorized_rails_scaffolds/rspec_scaffold_view_helper.rb, line 13 def date_select_year_value(date_string) DateTime.parse(date_string).strftime('%Y') end