Sha256: 8ac4418564f7bb2d0a7467c2c09f24d6802e3633741f03a1fea09fac6bc2c4cb

Contents?: true

Size: 273 Bytes

Versions: 12

Compression:

Stored size: 273 Bytes

Contents

# TODO: 
# model_file_name and similar methods in rails3_assist and rails3_artifaftor should be fixed to always call underscore on filenames

class String
  def as_filename
    self.underscore  
  end
end

class Symbol
  def as_filename
    self.to_s.underscore  
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
roles_active_record-0.5.1 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.5.0 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.9 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.8 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.7 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.6.4 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.6.3 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.6.2 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.6.1 lib/generators/active_record/roles/core_ext.rb
roles_data_mapper-0.3.1 lib/generators/data_mapper/roles/core_ext.rb
roles_active_record-0.4.6 lib/generators/active_record/roles/core_ext.rb
roles_active_record-0.4.5 lib/generators/active_record/roles/core_ext.rb